package exam.bean;

import org.springframework.format.annotation.DateTimeFormat;
import org.springframework.web.multipart.MultipartFile;

import java.util.Date;
import java.util.List;

public class FinanceInfo {
    private int id;
    private int projectId;    //所属项目Id
    private String projectName;  //所属项目名称
    private String financeType;   //财务类型
    private float financeTotal;  //金额
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date accurrentTime;
    private String otherText;
    private int currentStatus;   //当前状态

    private Date updateTime;
    private int enterUserId;

    private List<MultipartFile> utilFiles; // 附件文件
    private List<UtilFiles> files;       //附加表数据

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public int getProjectId() {
        return projectId;
    }

    public void setProjectId(int projectId) {
        this.projectId = projectId;
    }

    public String getProjectName() {
        return projectName;
    }

    public void setProjectName(String projectName) {
        this.projectName = projectName;
    }

    public String getFinanceType() {
        return financeType;
    }

    public void setFinanceType(String financeType) {
        this.financeType = financeType;
    }

    public float getFinanceTotal() {
        return financeTotal;
    }

    public void setFinanceTotal(float financeTotal) {
        this.financeTotal = financeTotal;
    }

    public Date getAccurrentTime() {
        return accurrentTime;
    }

    public void setAccurrentTime(Date accurrentTime) {
        this.accurrentTime = accurrentTime;
    }

    public String getOtherText() {
        return otherText;
    }

    public void setOtherText(String otherText) {
        this.otherText = otherText;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    public int getEnterUserId() {
        return enterUserId;
    }

    public void setEnterUserId(int enterUserId) {
        this.enterUserId = enterUserId;
    }

    public List<MultipartFile> getUtilFiles() {
        return utilFiles;
    }

    public void setUtilFiles(List<MultipartFile> utilFiles) {
        this.utilFiles = utilFiles;
    }

    public List<UtilFiles> getFiles() {
        return files;
    }

    public void setFiles(List<UtilFiles> files) {
        this.files = files;
    }

    public int getCurrentStatus() {
        return currentStatus;
    }

    public void setCurrentStatus(int currentStatus) {
        this.currentStatus = currentStatus;
    }

    @Override
    public String toString() {
        return "FinanceInfo{" +
                "id=" + id +
                ", projectId=" + projectId +
                ", projectName='" + projectName + '\'' +
                ", financeType='" + financeType + '\'' +
                ", financeTotal=" + financeTotal +
                ", accurrentTime=" + accurrentTime +
                ", otherText='" + otherText + '\'' +
                ", currentStatus=" + currentStatus +
                ", updateTime=" + updateTime +
                ", enterUserId=" + enterUserId +
                ", utilFiles=" + utilFiles +
                ", files=" + files +
                '}';
    }
}
